<template>
  <el-container>
    <!-- 头部 -->
    <el-header height="30">
      <app-header />
    </el-header>

    <!-- 主体 -->
    <el-container>
      <el-aside width="400px" class="left-panel">
        <app-side-panel />
      </el-aside>

      <el-main>
        <app-stage />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import AppHeader from "./components/app-header.vue";
import AppSidePanel from "./components/app-side-panel.vue";
import AppStage from "./components/app-stage.vue";

export default {
  name: "Game",
  components: {
    AppHeader,
    AppSidePanel,
    AppStage,
  },
  created() {
    this.$store.dispatch("sendUserEnter");
  },
};
</script>

<style lang="scss" scoped>
.left-panel {
  padding: 20px;
}
</style>